import com.ynny.bean.Students;
import com.ynny.dao.StudentsDaoImpl;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class test {
    @Test
    public void test() {
        ClassPathXmlApplicationContext classPathXmlApplicationContext =
                new ClassPathXmlApplicationContext( "applicationContext.xml");
        StudentsDaoImpl studentsDao = classPathXmlApplicationContext.getBean("studentsDaoImpl", StudentsDaoImpl.class);
        int i = studentsDao.update(new Students("01", "大三", "软件技术", "女", "小美"));

    }
}
